# !/bin/bash

SERVER_PID=`ps ax | grep aipi | grep java | grep -v grep | awk '{print $1}'` 
 if [ -z "$SERVER_PID" ]; then 
	echo "服务没有启动，无需关闭"
	exit -1;
 fi
 
 echo "服务aipi (${SERVER_PID})运行中……"
 
 kill -9 ${SERVER_PID}
 
 echo "成功发送进程(${SERVER_PID})关闭信息"
